/**
 * @(#) DonationSubtractionMoneyVO.as
 *
 * @date		2009. 04. 20.
 * @version		1.0
 * @author		Jo, ChangHun
 * @description	특별공제 보험료 Value Object
 * 				 
 */
package com.skt.common_hr.yearadjustment.model.vo
{
	import com.skt.common_hr.common.utilSilver.textSilver;
	import com.wcl.utils.DateUtil;
	import com.wcl.utils.NumberUtil;
	
	
	[Bindable]
	public class HouseFundVO
	{
		public var SEQNO:String;
		
		
		public var LDNAM:String;	// 임대인 성명
		public var LDREG:String;	// 임대인 주민등록번호
		
		
		public var BEGDA:Date = null;	// 
		public var ENDDA:Date = null;	// 
		
		public var BETRG:Number = 0;	//월세액의 합계
		public var ADDRE:String;			//주소 
		
		//2014
		public var HOUTY:String;			//주택유형코드
		public var HOUTX:String;			//주택유형명						
		public var FLRAR:String;			//주택면적

		
		public var CHECK:Boolean;
		
		public function clone():HouseFundVO
		{
			var tmp:HouseFundVO = new HouseFundVO();
			tmp.BEGDA = new Date(this.BEGDA);
			tmp.ENDDA = new Date(this.ENDDA);
			tmp.BETRG = this.BETRG;
			
			tmp.LDNAM = this.LDNAM;
			tmp.LDREG = this.LDREG;
			tmp.ADDRE = this.ADDRE;
			
			tmp.HOUTY = this.HOUTY;
			tmp.HOUTX = this.HOUTX;
			tmp.FLRAR = this.FLRAR;
			
			
			return tmp;
		}
		
		public function get LDREG_F():String{
			 if(LDREG.length == 10) {
 				return textSilver.B_regnoFunc(LDREG);	
 			}
 			//민증번호
 			else {
 				return textSilver.regnoFunc(LDREG);
 			}		
		}	
		
		public function get BEGDA_F():String{
			return DateUtil.toDefaultString(BEGDA);
		}	
		public function set BEGDA_F(val:String):void{
		}
		public function get ENDDA_F():String{
			return DateUtil.toDefaultString(ENDDA);
		}	
		public function set ENDDA_F(val:String):void{
		}
		
		public function get BETRG_F():String{
			return NumberUtil.NumberFormat(BETRG);
		}
		public function set BETRG_F(val:String):void{
		}
	}
}